// Dynamic tree editor - tree-like data structures editor for .NET/Mono.
// Copyright (C) 2006  Vladimir Sibirov
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

using System;
using System.Drawing;
using System.Windows.Forms;

namespace TreeEditor
{
	/// <summary>
	/// This window is used to display application help.
	/// </summary>
	public partial class HelpForm
	{
		// TODO: replace this with "/help/index.html"
		/// <summary>
		/// Relative path to the manual index.
		/// </summary>
		private const string MAN_PATH = "/help/help.htm";
	
		/// <summary>
		/// Form constructor.
		/// </summary>
		public HelpForm()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		/// <summary>
		/// Loads the help document into the browser.
		/// </summary>
		/// <param name="sender">Sender object.</param>
		/// <param name="e">Event arguments.</param>
		void HelpFormLoad(object sender, System.EventArgs e)
		{
			// Constructing the doc url
			string docUrl = Application.StartupPath + MAN_PATH;
			helpBrowser.Url = new Uri(docUrl);
		}
	}
}
